﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Facebook.Services;
using Facebook.Contracts;


namespace WebApplication1
{
    public partial class About : System.Web.UI.Page
    {
        IFacebookService facebookservice;

        protected void Page_Load(object sender, EventArgs e)
        {

            facebookservice = this.Session["facebookservice"] as IFacebookService;
            
            getInsi.Click += new EventHandler(getInsi_Click);
        }
        //
        /// <summary>
        ///  
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void getInsi_Click(object sender, EventArgs e)
        {
            
            dynamic analytics  = facebookservice.GetAnalytics(this.txtMetric.Text, txtbSince.Text,txtUntil.Text);

        }
    }
}
